<?php
namespace app\api\validate;

use think\Validate;

/**
 * 行为验证器
 * @package app\menus\validate
 * @author
 */
class ViperCard extends Validate
{
    //定义验证规则
    protected $rule = [
        'mobile'  => 'require',
        'is_receiver_message'  => 'require',
        'name'=>'require',
        'viper_type_id'=>'require',
        'gender'=>'require',

    ];
    //定义验证提示
    protected $message = [
        'mobile.require' => '请输入手机号',
        'mobile.mobile' => '请输入正确的手机号',
        'is_receiver_message.require' => '请选择短信设置',
        'name.require' => '请填写姓名',
        'viper_type_id.require' => '请选择会员卡类型',
        'gender.require' => '请选择会员性别',
    ];

}
